<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateCrawlTaskTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('crawl_task', function (Blueprint $table) {
          $table->engine = 'InnoDB';

          $table->increments('id')->unique();
          $table->string('name', 255);
          $table->string('data_source', 255);
          $table->tinyInteger('type');
          $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::drop('crawl_task');
    }
}
